const proxy = require('http-proxy-middleware');
module.exports = function (app) {
  app.use(
    proxy(
      '/api/',
      {
        target: 'https://easy-mock.com/mock/5b89e3f23da6cd09e7220537/api',
        changeOrigin: true,
        pathRewrite: {
          '^/api/': '/'
        }
      }
    )
  )
  // app.use()...
}
